﻿using PaceR.Core.Entities;
using PaceR.Core.Interfaces;

namespace PaceR.Core.Factories
{
    public sealed class SimpleResultObjectFactory : IResultObjectFactory
    {
        #region IResultObjectFactory Members

        public IResult<T> GetResultObject<T>()
        {
            return new SimpleResult<T>(this);
        }

        public IResultMessages GetResultMessagesObject()
        {
            return new SimpleResultMessages(this);
        }

        public IResultMessage GetResultMessageObject()
        {
            return new SimpleResultMessage();
        }

        #endregion
    }
}
